import request from '@/config/axios'
const baseUrl = 'http://localhost:3000/dev-api/societies'
const applyBaseUrl = 'http://localhost:3000/dev-api/societyApplies'

/**
 * 获取社团列表
 */
export const fetchGetSocietyList = (params: any) => {
  return request.get({ url: `${baseUrl}` ,params})
}


/**
 * 获取指定社团信息
 */
export const fetchGetSocietyInfo = (id: any) => {
  return request.get({ url: `${baseUrl}/${id}`})
}

/**
 * 审批社团申请
 */

export const fetchPostSocietyApply = (data: any) => {
  return request.post({ url: `${applyBaseUrl}/check`,data},)
}


